﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 共享单车管理系统
{
    public partial class sub : Form
    {
        public sub()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DB.GetCn();
            string str = "insert into orders values('" + Login.UserID + "','" + DateTime.Today + "','未审核',null," + shops.profit + ")";
            shops.profit = 0;
            DB.sqlEx(str);
            MessageBox.Show("已经成功结算，谢谢光临");
            this.Close();
        }

        private void sub_Load(object sender, EventArgs e)
        {

        }
    }
}
